package com.sinosoft.hydra.um.repositories;

import java.util.List;

import cn.com.sinux.spring.repositories.IBaseRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import com.sinosoft.hydra.um.domain.permission.SysLogErrorMessage;

/**
 * 日志错误信息数据层
 * @author Administrator
 *
 */
public interface SysLogErrorMessageRepository extends IBaseRepository<SysLogErrorMessage, String> {
	
	@Query("select l  from SysLogErrorMessage l  where  l.eventId = ?1 order by l.indx")
	public List<SysLogErrorMessage>  findByLogInfo(String id);
	
	@Modifying
	@Query("delete from SysLogErrorMessage where eventId in (?1)")
	public void deleteFromInfo(List<String> infoId);
}
